// ************************************************************************
// Repositories classes for Entity Framework Extension...
// ************************************************************************

namespace DAL.BetpointAdvanced.BNL.EntityFramework.Facades
{
    using System;
    using System.Data;
    using GrayParrot.Core.Data;
    using GrayParrot.Data.EntityFramework;
    using System.Collections.Generic;
	using DAL.BetpointAdvanced.BNL.ADO.Utilities;
    public partial class BNL_ElencoCodici3DSecureFacade : GrayParrot.Data.EntityFramework.FacadeBase<BNL_ElencoCodici3DSecureFacade>
    {
	    private Repository<BNL_ElencoCodici3DSecure, BNL_ElencoCodici3DSecureAggregateRoot> m_repository = null;

        public Repository<BNL_ElencoCodici3DSecure, BNL_ElencoCodici3DSecureAggregateRoot> Repository
        {
            get { return m_repository; }
        }
        private DbContext<Context> m_ctx = null;

        public BNL_ElencoCodici3DSecureFacade()
        {
        }

        public override void Initialize()
        {
            m_ctx = new DbContext<Context>();
            m_repository = new Repository<BNL_ElencoCodici3DSecure, BNL_ElencoCodici3DSecureAggregateRoot>(m_ctx.BuildContext());
        }

        public override void Initialize(System.Data.Entity.DbContext context)
        {
            m_repository = new Repository<BNL_ElencoCodici3DSecure, BNL_ElencoCodici3DSecureAggregateRoot>(context);
        }

        public override void Dispose()
        {
            if(m_ctx != null)
			{
			   m_ctx.Dispose();
			   m_ctx = null;
			}
        }
	}
    public partial class BNL_ReportTransazioniFacade : GrayParrot.Data.EntityFramework.FacadeBase<BNL_ReportTransazioniFacade>
    {
	    private Repository<BNL_ReportTransazioni, BNL_ReportTransazioniAggregateRoot> m_repository = null;

        public Repository<BNL_ReportTransazioni, BNL_ReportTransazioniAggregateRoot> Repository
        {
            get { return m_repository; }
        }
        private DbContext<Context> m_ctx = null;

        public BNL_ReportTransazioniFacade()
        {
        }

        public override void Initialize()
        {
            m_ctx = new DbContext<Context>();
            m_repository = new Repository<BNL_ReportTransazioni, BNL_ReportTransazioniAggregateRoot>(m_ctx.BuildContext());
        }

        public override void Initialize(System.Data.Entity.DbContext context)
        {
            m_repository = new Repository<BNL_ReportTransazioni, BNL_ReportTransazioniAggregateRoot>(context);
        }

        public override void Dispose()
        {
            if(m_ctx != null)
			{
			   m_ctx.Dispose();
			   m_ctx = null;
			}
        }
	}
    public partial class BNL_TransazioniFacade : GrayParrot.Data.EntityFramework.FacadeBase<BNL_TransazioniFacade>
    {
	    private Repository<BNL_Transazioni, BNL_TransazioniAggregateRoot> m_repository = null;

        public Repository<BNL_Transazioni, BNL_TransazioniAggregateRoot> Repository
        {
            get { return m_repository; }
        }
        private DbContext<Context> m_ctx = null;

        public BNL_TransazioniFacade()
        {
        }

        public override void Initialize()
        {
            m_ctx = new DbContext<Context>();
            m_repository = new Repository<BNL_Transazioni, BNL_TransazioniAggregateRoot>(m_ctx.BuildContext());
        }

        public override void Initialize(System.Data.Entity.DbContext context)
        {
            m_repository = new Repository<BNL_Transazioni, BNL_TransazioniAggregateRoot>(context);
        }

        public override void Dispose()
        {
            if(m_ctx != null)
			{
			   m_ctx.Dispose();
			   m_ctx = null;
			}
        }
	}
}

